<?php #coding: utf-8 æ ø å

?> 

<div class="row-fluid">

	<div class="span12">
	<?	$this->load->view("element/type/element"); ?>
	</div>

</div>

<div class="row-fluid">




	<div class="span6">
	<?
		if(isset($element_content['individ'])) { $this->load->view($element_content['individ']); }
		if(isset($element_content['gruppe'])) { $this->load->view($element_content['gruppe']); }
		if(isset($element_content['entitet'])) { $this->load->view($element_content['entitet']);}
		if(isset($element_content['begivenhed'])) { $this->load->view($element_content['begivenhed']);}
		if(isset($element_content['sted'])) { $this->load->view($element_content['sted']);}


	?>
	</div>


	<div class="span6">
		<?

		if(isset($element_data['kampagne'])) {
			
				$sessions_data = array(
								'overskrift' => "Sessioner",
								'manchet_type' => 'rubrik',
								'manchet_tekst'=> "Rollespilssesioner i kampagne",
								'content' => array("element/content_by_variable/sessions"),
							);
				$this->load->view("includes/manchet",$sessions_data);
			
			
			
		}

		if(isset($element_content['individ'])) { $overskrift_over = "Medlem af"; } else { $overskrift_over = "Zoom ud"; }
		if(!empty($over)) {
			if(!isset($element_content['individ'])) {
				$over_data = array(
								'overskrift' => $overskrift_over,
								'manchet_type' => 'rubrik',
								'rediger_url' => 'rediger_over',
								'manchet_tekst'=> "overordnede elementer",
								'content' => array("element/content_by_variable/over"),
							);
				$this->load->view("includes/manchet",$over_data);
			}
		}
		//print_r($element_typer);
		if(!isset($element_content['individ'])) {
			if(!isset($element_content['gruppe'])){
				$under_data = array(
										'overskrift' => "Zoom ind",
										'manchet_type' => 'rubrik',
										'rediger_url' => 'rediger_under',
										'manchet_tekst'=> "underordede elementer",
										'content' => array("element/content_by_variable/under"),
									);
					$this->load->view("includes/manchet",$under_data);
				
			}
			else {
					$grp_count = 0;
					foreach($under as $u) {
						if($u['type_spec'] == "gruppe") {
							$grp_count = $grp_count + 1;
						}
					}
					//echo "Hallo".$grp_count; 
					if($grp_count > 0) {
				$gruppe_under_data = array(
									'overskrift' => "Zoom ind",
									'manchet_type' => 'rubrik',
									'rediger_url' => 'rediger_under',
									'manchet_tekst'=> "underordede elementer",
									'content' => array("element/content_by_variable/gruppe_under"),
								);
				$this->load->view("includes/manchet",$gruppe_under_data);		
				}
			}
		}


		if(isset($element_content['individ'])) { 
			$titler_data = array('overskrift' => "Titler",
							'manchet_type' => 'ink',
							'manchet_tekst' => "Titler blablabla",
							'rediger_url' => "rediger_titler", 
							'content_headline' => "",
							'content' => array("element/content_by_variable/titler"),
						);	

		$this->load->view("includes/manchet",$titler_data);
			 }



		?>
	</div>

	
	
</div>



